package nave.android.game;

import java.awt.Point;
import java.awt.geom.Point2D;

import nave.android.framework.Graphics;

public class Lava extends AnimatedObject
{
	
	boolean colidiu;

	public Lava(Asset texture, Point2D p, Point2D d, Point2D sP, Point2D sD,
			  float time, Point animationType, boolean dependent)
	{
		super (texture, p, d, sP, sD, time, animationType, dependent);
		
		colidiu = false;
	}
	
	public void Update(float deltaTime)
	{
		super.update(deltaTime);
		
		if(CollisionManager.OnCollisionGameObject(this, player))
			colidiu = true;
			
	}
	
	public boolean Colidiu()
	{
		return colidiu;
	}
	
	public void Draw(Graphics g)
	{
		super.draw(g);
	}
}
